//
//  biaoshiCollectionViewCell.swift
//  BusinessIOS
//
//  Created by Rain on 2019/1/4.
//  Copyright © 2019 XingJian Li. All rights reserved.
//

import UIKit

class biaoshiCollectionViewCell: UICollectionViewCell {

    
    var imageview : UIImageView!
    
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        
 
        self.imageview = UIImageView()
        
        
        
        self.contentView.addSubview(self.imageview)
        
        
        
        self.layoutView()
        
        
    }
    
    // 赋值方法 - 显示 cell 内容方法
    func biaoshiWithModel(model: biaoshiModel) {

        print("http://wwwqjzsyzcscom.aykj.net.cn/api\(model.articlePic!)")


        self.imageview.sd_setImage(with: NSURL.init(string: "http://wwwqjzsyzcscom.aykj.net.cn/api\(model.articlePic!)")! as URL, placeholderImage: UIImage.init(named: "app_hot_rec_1"), options: [], progress: nil, completed:nil)
        
        



    }
//
    func layoutView() {
        
        
        self.imageview.snp.makeConstraints { (make) in
            make.top.equalTo(self.snp.top).offset(0)
            make.left.equalTo(self.snp.left).offset(0)
            make.right.equalTo(self.snp.right).offset(0)
            make.height.equalTo(100)
        }
     
        
    }
    
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
}


